﻿<Window x:Name="window" x:Class="PingApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="366" Width="634">
    <DockPanel>
        <WrapPanel Margin="0,0,0,0" DockPanel.Dock="Top">

            <WrapPanel.Effect>
                <DropShadowEffect BlurRadius="2" ShadowDepth="3"/>
            </WrapPanel.Effect>
            <TextBox x:Name="urlBox" Height="23" TextWrapping="Wrap" Text="www.google.com" Width="400" HorizontalAlignment="Center" Margin="8,8,0,0" Padding="0"/>
            <Button x:Name="goButton" Content="GO!!!" Width="75" Margin="8,8,0,0" Click="goButton_Click"/>



        </WrapPanel>
        <DataGrid x:Name="theGrid"  Margin="10" AutoGenerateColumns="False" >
            <DataGrid.Columns>
                <DataGridTextColumn  ClipboardContentBinding="{x:Null}" Header="Status"  Binding="{Binding Path=Status}" />
                <DataGridTextColumn Binding="{Binding Path=TTL}" ClipboardContentBinding="{x:Null}" Header="TTL"/>
                <DataGridTextColumn Binding="{Binding Path=ReplyIP}" ClipboardContentBinding="{x:Null}" Header="Response IP"/>
                <DataGridTextColumn Binding="{Binding Path=ReplyHost}" ClipboardContentBinding="{x:Null}" Header="Response Host"/>
                <DataGridTextColumn Binding="{Binding Path=ResponseTime}" ClipboardContentBinding="{x:Null}" Header="Response Time (ms)"/>
            </DataGrid.Columns>

        </DataGrid>

    </DockPanel>
</Window>
